package com.exercise.activemq.usemq.queue;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * @author admin
 * 2019/12/13-10:27
 **/
@Component
public class ConsumerQueue {
    @JmsListener(destination = "springboot.queue",containerFactory = "jmsQueueListenerContainerFactory")
    public void receive(String text) {
        System.out.println(this.getClass().getName()+" 收到报文"+text);

    }
}
